package 数组Array.二维数组.test04;

public class ArrayTest04 {
    public static void main(String[] args) {
        int[][] array = new int[3][4];
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                System.out.print(array[i][j] + "\t");
            }
            System.out.println();
        }
        System.out.println("=================================================");



        printArray(new int[][]{
                {2,3,4,7},
                {123,36,76},
                {123,12425}
        });
    }
    public static void printArray(int[][] array){
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                System.out.print(array[i][j] + "\t");
            }
            System.out.println();
        }
    }
}
